# 创建时间：2025/4/29 星期二 20:51
# 创建人：李德才

list = [i * 2 for i in range(1, 11)]
print("直接计算", list)
list = [i for i in range(1, 11) if i % 2 == 0]
print("偶数计算", list)
list = ["偶数" if i % 2 == 0 else "奇数" for i in range(1, 11)]
print("判断" , list)
list = [i if i % 2 == 0 else i * 3 for i in range(1, 11)]
print("",list)
